<ul class="ui-listview ui-listview-inset ui-corner-all ui-shadow" data-role="listview" data-filter="true" data-filter-placeholder="Projektleiter suchen..." data-filter-theme="c">
    <li class="ui-li ui-li-static ui-body-c ui-corner-top" data-role="list-divider">Projektleiter</li>
    <?php

        $sql = "SELECT  p.pm_id,p.client_id,p.name,p.vorname,p.phone,p.email,p.mobil,p.km_or_pm,c.client_id AS c_client_id,"
             . "c.address_id AS c_address_id,c.name AS c_name FROM project_manager p LEFT JOIN client c ON (c.client_id = "
             . " p.client_id) WHERE km_or_pm = 'pm' ORDER BY c.name ASC";
        $result = mysql_query($sql);

        if (mysql_num_rows($result) > 0) {
            while ($data = mysql_fetch_array($result)) {
    ?>
                <li>
                    <a href="edit.php?client_id=<?php echo $data['client_id']; ?>&pm_id=<?php echo $data['pm_id']; ?>&vorname=<?php echo $data['vorname']; ?>&name=<?php echo $data['name']; ?>&phone=<?php echo $data['phone']; ?>&email=<?php echo $data['email']; ?>&mobil=<?php echo $data['mobil']; ?>&cname=<?php echo $data['c_name']; ?>&form=pm">
                        <h3><?php echo $data['vorname'] . ' ' . $data['name']; ?></h3>
                        <br />
                        <p style="color:#2666db; font-size:16px"><?php echo '<b style="color:black">Firma:</b> ' . $data['c_name']; ?></p>
                    </a>
                    <a href="delete.php?client_id=<?php echo $data['client_id']; ?>&pm_id=<?php echo $data['pm_id']; ?>&vorname=<?php echo $data['vorname']; ?>&name=<?php echo $data['name']; ?>&phone=<?php echo $data['phone']; ?>&email=<?php echo $data['email']; ?>&mobil=<?php echo $data['mobil']; ?>&cname=<?php echo $data['c_name']; ?>&form=pm" data-role="button" data-icon="delete" data-theme="a" data-iconpos="notext" data-rel="dialog">Delete</a>
                </li>
    <?php
            }
        }
    ?>
</ul>